<template>
  <!-- 费用（条码申请项目） -->
  <div id="BacStainingSelection">
    <vxe-modal v-model="modalShow" id="specAdditionModal" width="85vw" height="80vh" show-zoom show-footer @hide="closeModal">
      <template #title>
        <span>选择菌落观察结果</span>
      </template>
      <template #default>
        <Splitpanes>
          <Pane :size="35">
            <vxe-toolbar class="bg-gray">
              <template #buttons>
                <vxe-input placeholder="关键字查询" />
                <vxe-button type="text" class="button-blue margin-left-xs" content="查询" status="primary"></vxe-button>
              </template>
            </vxe-toolbar>
            <div :style="{ height: 'calc(100% - 40px)'}">
              <vxe-table ref="specAdditionListTable" v-loading="additionLoading" border height="auto" :data="specAdditionList" :footer-method="footerMethod" :merge-footer-items="[ { row: 0, col: 0, rowspan: 1, colspan: 4 } ]" :row-config="{ isCurrent: true, isHover: true }" :keyboard-config="{
              isArrow: true,
              isTab: true,
              isEdit: true
            }" resizable show-overflow>
                <vxe-column type="seq" title="#" width="30" align="left"></vxe-column>
                <vxe-column field="patId" title="形态名称" min-width="180"></vxe-column>
                <vxe-column field="patNa" title="输入码" width="80"></vxe-column>
                <vxe-column field="patNa" title="描述" width="120"></vxe-column>
                <vxe-column field="testPurpose" title="临床意义" width="120"></vxe-column>
                <vxe-column field="testPurpose" title="顺序" width="60"></vxe-column>
              </vxe-table>
            </div>
          </Pane>
          <Pane :size="65">
            <div style="height:calc(100%)">
              <el-scrollbar style="height: 100%">
                <el-descriptions :column="1" class="CMTypeBox" border v-for="(item, index) in colonialMorphologyTypeList" :key="index">
                  <el-descriptions-item label-class-name="CMTypeBox-title">
                    <template #label>
                      <div class="text-bold text-lg">{{ item.name }}</div>
                      <div>
                        <vxe-button type="text" class-name="vxe-icon-delete-fill text-red" content="清除选中" @click="clearOptionChecked(item)"></vxe-button>
                      </div>
                    </template>
                    <el-row :gutter="10">
                      <el-col :span="3" v-for="(op, idx) in item.colonialMorphologyTypeOptionDtos" :key="idx" class="text item" @click.capture="radioChange(item.id, op.id, op.name)">
                        <el-card shadow="never">
                          <el-image style="width: 100%; height: 50px" :src="op.diagrammaticSketchPath" fit="cover">
                            <template #error>
                              <div class="image-slot">
                                <el-icon><icon-picture /></el-icon>
                              </div>
                            </template>
                          </el-image>
                        </el-card>
                        <div>
                          <el-checkbox v-model="op.isSelected" @change="radioChange(item.id, op.id, op.name)">
                            {{ op ? op.name : '' }}
                          </el-checkbox>
                        </div>
                      </el-col>
                    </el-row>
                  </el-descriptions-item>
                </el-descriptions>
              </el-scrollbar>
            </div>
          </Pane>
        </Splitpanes>
      </template>
      <template #footer>
        <div class="flex justify-end">
          <vxe-button type="text" class="button-white margin-left-xs" content="取消" @click="modalShow=false"></vxe-button>
          <vxe-button type="text" class="button-blue margin-left-xs" content="确定" @click="confirmClick"></vxe-button>
        </div>
      </template>
    </vxe-modal>
  </div>
</template>
<script setup lang="ts">
import { getCurrentInstance, reactive, ref } from 'vue';
import { IsEmpty } from '@/utils/common';
import { VxeMessage, VxeNotifyType } from '@/utils/CommonMessage';
import 'vxe-table/lib/style.css';
import { Splitpanes, Pane } from 'splitpanes';
import { Picture as IconPicture } from '@element-plus/icons-vue'

let { proxy }: any = getCurrentInstance();

let reqNo = ref(''); //接收传过来的检验结果id
let rptGroup = ref(''); //接收传过来的检验结果id
let tableList = reactive([]);
let specAdditionList = reactive([]);
let loading = ref(false);
let additionLoading = ref(false);
let applicationItemTableList = ref(null);
let modalShow = ref(false);
let isNotEdit = false;
let specAdditionForm = reactive({
  reqNo: '' //条码号)
}); //附加条码
let colonialMorphologyTypeList: any[] = reactive([
  {
    "code": "Size",
    "name": "大小",
    "inputCode": null,
    "displayOrder": "A001",
    "isStatic": true,
    "colonialMorphologyTypeOptionDtos": [
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c100",
        "colonialMorphologyType": null,
        "code": "001",
        "name": "特大",
        "inputCode": null,
        "displayOrder": "A001",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Size-001.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c101"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c100",
        "colonialMorphologyType": null,
        "code": "002",
        "name": "大",
        "inputCode": null,
        "displayOrder": "A002",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Size-002.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c102"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c100",
        "colonialMorphologyType": null,
        "code": "003",
        "name": "中等偏大",
        "inputCode": null,
        "displayOrder": "A003",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Size-003.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c103"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c100",
        "colonialMorphologyType": null,
        "code": "004",
        "name": "中等",
        "inputCode": null,
        "displayOrder": "A004",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Size-004.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c104"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c100",
        "colonialMorphologyType": null,
        "code": "005",
        "name": "中等偏小",
        "inputCode": null,
        "displayOrder": "A005",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Size-005.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c105"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c100",
        "colonialMorphologyType": null,
        "code": "006",
        "name": "小",
        "inputCode": null,
        "displayOrder": "A006",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Size-006.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c106"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c100",
        "colonialMorphologyType": null,
        "code": "007",
        "name": "针尖状",
        "inputCode": null,
        "displayOrder": "A007",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Size-007.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c107"
      }
    ],
    "isDeleted": false,
    "deleterId": null,
    "deletionTime": null,
    "lastModificationTime": null,
    "lastModifierId": null,
    "creationTime": "0001-01-01 00:00:00",
    "creatorId": null,
    "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c100"
  },
  {
    "code": "Color",
    "name": "颜色",
    "inputCode": null,
    "displayOrder": "A002",
    "isStatic": true,
    "colonialMorphologyTypeOptionDtos": [
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c200",
        "colonialMorphologyType": null,
        "code": "001",
        "name": "紫色",
        "inputCode": null,
        "displayOrder": "A001",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Color-001.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c201"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c200",
        "colonialMorphologyType": null,
        "code": "002",
        "name": "红色",
        "inputCode": null,
        "displayOrder": "A002",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Color-002.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c202"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c200",
        "colonialMorphologyType": null,
        "code": "003",
        "name": "黄绿色",
        "inputCode": null,
        "displayOrder": "A003",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Color-003.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c203"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c200",
        "colonialMorphologyType": null,
        "code": "004",
        "name": "灰色",
        "inputCode": null,
        "displayOrder": "A004",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Color-004.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c204"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c200",
        "colonialMorphologyType": null,
        "code": "005",
        "name": "黄色",
        "inputCode": null,
        "displayOrder": "A005",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Color-005.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c205"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c200",
        "colonialMorphologyType": null,
        "code": "006",
        "name": "灰白色",
        "inputCode": null,
        "displayOrder": "A006",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Color-006.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c206"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c200",
        "colonialMorphologyType": null,
        "code": "007",
        "name": "白色",
        "inputCode": null,
        "displayOrder": "A007",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Color-007.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c207"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c200",
        "colonialMorphologyType": null,
        "code": "008",
        "name": "无色",
        "inputCode": null,
        "displayOrder": "A008",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Color-008.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c208"
      }
    ],
    "isDeleted": false,
    "deleterId": null,
    "deletionTime": null,
    "lastModificationTime": null,
    "lastModifierId": null,
    "creationTime": "0001-01-01 00:00:00",
    "creatorId": null,
    "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c200"
  },
  {
    "code": "Surface",
    "name": "表面",
    "inputCode": null,
    "displayOrder": "A003",
    "isStatic": true,
    "colonialMorphologyTypeOptionDtos": [
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c300",
        "colonialMorphologyType": null,
        "code": "001",
        "name": "毛玻璃样",
        "inputCode": null,
        "displayOrder": "A001",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Surface-001.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c301"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c300",
        "colonialMorphologyType": null,
        "code": "002",
        "name": "干燥",
        "inputCode": null,
        "displayOrder": "A002",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Surface-002.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c302"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c300",
        "colonialMorphologyType": null,
        "code": "003",
        "name": "湿润",
        "inputCode": null,
        "displayOrder": "A003",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Surface-003.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c303"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c300",
        "colonialMorphologyType": null,
        "code": "004",
        "name": "皱纹",
        "inputCode": null,
        "displayOrder": "A004",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Surface-004.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c304"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c300",
        "colonialMorphologyType": null,
        "code": "005",
        "name": "同心圆",
        "inputCode": null,
        "displayOrder": "A005",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Surface-005.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c305"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c300",
        "colonialMorphologyType": null,
        "code": "006",
        "name": "粘液样",
        "inputCode": null,
        "displayOrder": "A006",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Surface-006.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c306"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c300",
        "colonialMorphologyType": null,
        "code": "007",
        "name": "光滑",
        "inputCode": null,
        "displayOrder": "A007",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Surface-007.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c307"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c300",
        "colonialMorphologyType": null,
        "code": "008",
        "name": "粗糙",
        "inputCode": null,
        "displayOrder": "A008",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Surface-008.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c308"
      }
    ],
    "isDeleted": false,
    "deleterId": null,
    "deletionTime": null,
    "lastModificationTime": null,
    "lastModifierId": null,
    "creationTime": "0001-01-01 00:00:00",
    "creatorId": null,
    "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c300"
  },
  {
    "code": "Transparency",
    "name": "透明度",
    "inputCode": null,
    "displayOrder": "A004",
    "isStatic": true,
    "colonialMorphologyTypeOptionDtos": [
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c400",
        "colonialMorphologyType": null,
        "code": "001",
        "name": "不透明",
        "inputCode": null,
        "displayOrder": "A001",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Transparency-001.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c401"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c400",
        "colonialMorphologyType": null,
        "code": "002",
        "name": "半透明",
        "inputCode": null,
        "displayOrder": "A002",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Transparency-002.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c402"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c400",
        "colonialMorphologyType": null,
        "code": "003",
        "name": "透明",
        "inputCode": null,
        "displayOrder": "A003",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Transparency-003.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c403"
      }
    ],
    "isDeleted": false,
    "deleterId": null,
    "deletionTime": null,
    "lastModificationTime": null,
    "lastModifierId": null,
    "creationTime": "0001-01-01 00:00:00",
    "creatorId": null,
    "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c400"
  },
  {
    "code": "Shape",
    "name": "外形",
    "inputCode": null,
    "displayOrder": "A005",
    "isStatic": true,
    "colonialMorphologyTypeOptionDtos": [
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c500",
        "colonialMorphologyType": null,
        "code": "001",
        "name": "嵌入平板",
        "inputCode": null,
        "displayOrder": "A001",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Shape-001.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c501"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c500",
        "colonialMorphologyType": null,
        "code": "002",
        "name": "卷发状",
        "inputCode": null,
        "displayOrder": "A002",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Shape-002.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c502"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c500",
        "colonialMorphologyType": null,
        "code": "003",
        "name": "菌丝状",
        "inputCode": null,
        "displayOrder": "A003",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Shape-003.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c503"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c500",
        "colonialMorphologyType": null,
        "code": "004",
        "name": "不规则形",
        "inputCode": null,
        "displayOrder": "A004",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Shape-004.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c504"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c500",
        "colonialMorphologyType": null,
        "code": "005",
        "name": "圆形",
        "inputCode": null,
        "displayOrder": "A005",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Shape-005.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c505"
      }
    ],
    "isDeleted": false,
    "deleterId": null,
    "deletionTime": null,
    "lastModificationTime": null,
    "lastModifierId": null,
    "creationTime": "0001-01-01 00:00:00",
    "creatorId": null,
    "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c500"
  },
  {
    "code": "Edge",
    "name": "边缘",
    "inputCode": null,
    "displayOrder": "A006",
    "isStatic": true,
    "colonialMorphologyTypeOptionDtos": [
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c600",
        "colonialMorphologyType": null,
        "code": "001",
        "name": "细毛状",
        "inputCode": null,
        "displayOrder": "A001",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Edge-001.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c601"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c600",
        "colonialMorphologyType": null,
        "code": "002",
        "name": "锯齿状",
        "inputCode": null,
        "displayOrder": "A002",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Edge-002.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c602"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c600",
        "colonialMorphologyType": null,
        "code": "003",
        "name": "树状边",
        "inputCode": null,
        "displayOrder": "A003",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Edge-003.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c603"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c600",
        "colonialMorphologyType": null,
        "code": "004",
        "name": "破裂状",
        "inputCode": null,
        "displayOrder": "A004",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Edge-004.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c604"
      }
    ],
    "isDeleted": false,
    "deleterId": null,
    "deletionTime": null,
    "lastModificationTime": null,
    "lastModifierId": null,
    "creationTime": "0001-01-01 00:00:00",
    "creatorId": null,
    "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c600"
  },
  {
    "code": "Height",
    "name": "高度",
    "inputCode": null,
    "displayOrder": "A007",
    "isStatic": true,
    "colonialMorphologyTypeOptionDtos": [
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c700",
        "colonialMorphologyType": null,
        "code": "001",
        "name": "中间凸起",
        "inputCode": null,
        "displayOrder": "A001",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Height-001.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c701"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c700",
        "colonialMorphologyType": null,
        "code": "002",
        "name": "脐窝状凹陷",
        "inputCode": null,
        "displayOrder": "A002",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Height-002.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c702"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c700",
        "colonialMorphologyType": null,
        "code": "003",
        "name": "隆起",
        "inputCode": null,
        "displayOrder": "A003",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Height-003.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c703"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c700",
        "colonialMorphologyType": null,
        "code": "004",
        "name": "凸起",
        "inputCode": null,
        "displayOrder": "A004",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Height-004.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c704"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c700",
        "colonialMorphologyType": null,
        "code": "005",
        "name": "扁平",
        "inputCode": null,
        "displayOrder": "A005",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Height-005.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c705"
      }
    ],
    "isDeleted": false,
    "deleterId": null,
    "deletionTime": null,
    "lastModificationTime": null,
    "lastModifierId": null,
    "creationTime": "0001-01-01 00:00:00",
    "creatorId": null,
    "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c700"
  },
  {
    "code": "Lustre",
    "name": "光泽",
    "inputCode": null,
    "displayOrder": "A008",
    "isStatic": true,
    "colonialMorphologyTypeOptionDtos": [
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c800",
        "colonialMorphologyType": null,
        "code": "001",
        "name": "金属光泽",
        "inputCode": null,
        "displayOrder": "A001",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Lustre-001.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c801"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c800",
        "colonialMorphologyType": null,
        "code": "002",
        "name": "有荧光",
        "inputCode": null,
        "displayOrder": "A002",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Lustre-002.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c802"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c800",
        "colonialMorphologyType": null,
        "code": "003",
        "name": "无光泽",
        "inputCode": null,
        "displayOrder": "A003",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Lustre-003.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c803"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c800",
        "colonialMorphologyType": null,
        "code": "004",
        "name": "有光泽",
        "inputCode": null,
        "displayOrder": "A004",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Lustre-004.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c804"
      }
    ],
    "isDeleted": false,
    "deleterId": null,
    "deletionTime": null,
    "lastModificationTime": null,
    "lastModifierId": null,
    "creationTime": "0001-01-01 00:00:00",
    "creatorId": null,
    "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c800"
  },
  {
    "code": "Hardness",
    "name": "硬度",
    "inputCode": null,
    "displayOrder": "A009",
    "isStatic": true,
    "colonialMorphologyTypeOptionDtos": [
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c900",
        "colonialMorphologyType": null,
        "code": "001",
        "name": "整块",
        "inputCode": null,
        "displayOrder": "A001",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Hardness-001.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c901"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c900",
        "colonialMorphologyType": null,
        "code": "002",
        "name": "易碎",
        "inputCode": null,
        "displayOrder": "A002",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Hardness-002.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c902"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97c900",
        "colonialMorphologyType": null,
        "code": "003",
        "name": "粘稠",
        "inputCode": null,
        "displayOrder": "A003",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Hardness-003.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c903"
      }
    ],
    "isDeleted": false,
    "deleterId": null,
    "deletionTime": null,
    "lastModificationTime": null,
    "lastModifierId": null,
    "creationTime": "0001-01-01 00:00:00",
    "creatorId": null,
    "id": "c86c2e05-3b82-4fac-8cb0-7c575c97c900"
  },
  {
    "code": "Hemolytic",
    "name": "溶血",
    "inputCode": null,
    "displayOrder": "A00A",
    "isStatic": true,
    "colonialMorphologyTypeOptionDtos": [
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97ca00",
        "colonialMorphologyType": null,
        "code": "001",
        "name": "小溶血环",
        "inputCode": null,
        "displayOrder": "A001",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Hemolytic-001.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97ca01"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97ca00",
        "colonialMorphologyType": null,
        "code": "002",
        "name": "大溶血环",
        "inputCode": null,
        "displayOrder": "A002",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Hemolytic-002.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97ca02"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97ca00",
        "colonialMorphologyType": null,
        "code": "003",
        "name": "不溶血",
        "inputCode": null,
        "displayOrder": "A003",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Hemolytic-003.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97ca03"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97ca00",
        "colonialMorphologyType": null,
        "code": "004",
        "name": "β溶血",
        "inputCode": null,
        "displayOrder": "A004",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Hemolytic-004.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97ca04"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97ca00",
        "colonialMorphologyType": null,
        "code": "005",
        "name": "α溶血",
        "inputCode": null,
        "displayOrder": "A005",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Hemolytic-005.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97ca05"
      }
    ],
    "isDeleted": false,
    "deleterId": null,
    "deletionTime": null,
    "lastModificationTime": null,
    "lastModifierId": null,
    "creationTime": "0001-01-01 00:00:00",
    "creatorId": null,
    "id": "c86c2e05-3b82-4fac-8cb0-7c575c97ca00"
  },
  {
    "code": "Smell",
    "name": "气味",
    "inputCode": null,
    "displayOrder": "A00B",
    "isStatic": true,
    "colonialMorphologyTypeOptionDtos": [
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97cb00",
        "colonialMorphologyType": null,
        "code": "001",
        "name": "酸牛奶味",
        "inputCode": null,
        "displayOrder": "A001",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Smell-001.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97cb01"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97cb00",
        "colonialMorphologyType": null,
        "code": "002",
        "name": "氨味",
        "inputCode": null,
        "displayOrder": "A002",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Smell-002.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97cb02"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97cb00",
        "colonialMorphologyType": null,
        "code": "003",
        "name": "臭脚丫味",
        "inputCode": null,
        "displayOrder": "A003",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Smell-003.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97cb03"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97cb00",
        "colonialMorphologyType": null,
        "code": "004",
        "name": "鱼腥味",
        "inputCode": null,
        "displayOrder": "A004",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Smell-004.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97cb04"
      },
      {
        "colonialMorphologyTypeId": "c86c2e05-3b82-4fac-8cb0-7c575c97cb00",
        "colonialMorphologyType": null,
        "code": "005",
        "name": "甜酒酿味",
        "inputCode": null,
        "displayOrder": "A005",
        "isStatic": true,
        "description": null,
        "diagrammaticSketchPath": "/host/default/colonialMorphologies/Smell-005.gif",
        "isDeleted": false,
        "deleterId": null,
        "deletionTime": null,
        "lastModificationTime": null,
        "lastModifierId": null,
        "creationTime": "0001-01-01 00:00:00",
        "creatorId": null,
        "id": "c86c2e05-3b82-4fac-8cb0-7c575c97cb05"
      }
    ],
    "isDeleted": false,
    "deleterId": null,
    "deletionTime": null,
    "lastModificationTime": null,
    "lastModifierId": null,
    "creationTime": "0001-01-01 00:00:00",
    "creatorId": null,
    "id": "c86c2e05-3b82-4fac-8cb0-7c575c97cb00"
  }
]);


defineExpose({
  getreqDetail,
  showModal
})

// 页面加载列表
function getreqDetail(repData: any) {
  if (IsEmpty(repData) || !repData) {
    tableList.length = 0;
    return;
  }
  reqNo.value = '';
  if (!IsEmpty(repData.reqNo)) {
    reqNo.value = repData.reqNo;
  }
  if (!IsEmpty(repData.rptGroup)) {
    rptGroup.value = repData.rptGroup;
  }
  getDetail();
  getReqAdditions();
}

// 获取项目费用明细
function getDetail() {
  loading.value = true;
  const url = '/api/reqdetail/findReqDetailByReqNo';
  proxy.$http
    .get(url, { params: { reqNo: reqNo.value } })
    .then(async (res: any) => {
      tableList.length = 0;
      loading.value = false;
      if (res.data && res.data.length > 0) {
        tableList.push(...res.data);
      }
    })
    .catch((err: any) => {
      VxeMessage(err, VxeNotifyType.error);
    });
}

//获取申请附加信息
function getReqAdditions() {
  specAdditionList.length = 0;
  additionLoading.value = true;
  const url = '/lab/reqMain/findLabReqAdditions';
  proxy.$http
    .get(url, { params: { reqNo: reqNo.value } })
    .then(async (res: any) => {
      additionLoading.value = false;
      if (res.data) {
        specAdditionList.push(...res.data);
      }
    })
    .catch((err: any) => {
      VxeMessage(err, VxeNotifyType.error);
    });
}


function addSpecAddition() {
  modalShow.value = true;
}

/**绑定培养瓶 */
function showModal() {
  modalShow.value = true;
}

function removeSpecAddition() {
  modalShow.value = true;
  return;

  const $table = (proxy.$refs.specAdditionListTable as any).getCurrentRecord();

  if (IsEmpty($table)) {
    proxy.$XModal.message({
      content: '请选择需要取消的附加条码',
      status: 'error'
    });
  }
  const url = '/lab/reqMain/deleteReqAdditions';
  const data = {
    id: $table.id,
    reqNo: $table.reqNo
  };
  proxy.$http
    .get(url, { params: data })
    .then(async (res: any) => {
      additionLoading.value = false;
      modalShow.value = false;
      if (res.status.code === 400) {
        VxeMessage(res.status.msg, VxeNotifyType.error);
      } else {
        VxeMessage('取消附加条码成功', VxeNotifyType.success);
      }
      getReqAdditions();
    })
    .catch((err: any) => {
      VxeMessage(err, VxeNotifyType.error);
    });
  return;
}

// 设置行类名
function setRowClassName() {
  /*if (row.isAdditional) {
    return 'spec-addition';
  }*/
}

// 关闭弹框
function closeModal() {
  modalShow.value = false;
  specAdditionForm.reqNo = '';
}
// 获取是否静态的tag标记(绿/红)
function getIsStaticTagType(row: any) {
  if (row.isAddition === 0) {
    return 'success';
  } else {
    return 'danger';
  }
}

// 保存
function saveSpecAddition() {
  additionLoading.value = true;
  if (IsEmpty(reqNo.value)) {
    VxeMessage('当前检验主记录没有条码号', VxeNotifyType.error);
  }
  if (IsEmpty(specAdditionForm.reqNo)) {
    VxeMessage('请输入附加条码号', VxeNotifyType.error);
  }
  const url = '/lab/reqMain/addReqAdditions';
  const data = {
    rptGroup: rptGroup.value,
    reqNo: reqNo.value,
    additionReqNo: specAdditionForm.reqNo
  };
  proxy.$http
    .get(url, { params: data })
    .then(async (res: any) => {
      additionLoading.value = false;
      modalShow.value = false;
      if (res.status.code === 400) {
        VxeMessage(res.status.msg, VxeNotifyType.error);
      } else {
        VxeMessage('附加条码成功', VxeNotifyType.success);
      }
      getReqAdditions();
    })
    .catch((err: any) => {
      VxeMessage(err, VxeNotifyType.error);
    });
}
// 表尾
function footerMethod({ columns, data }) {
  let count = 0;
  // specAdditionList.forEach(item => {
  //   count += item.costs ? parseFloat(item.costs) : 0;
  // });
  return [
    columns.map((column, _columnIndex) => {
      if (_columnIndex === 1) {
        return `金额合计: ${formatJe(count)}`;
      }
      return null;
    })
  ];
}
function formatJe(v) {
  if (Number.isNaN(v)) {
    return '';
  }
  return Number(v).toFixed(2);
}
function radioChange(id, resultId, resultName) {
  colonialMorphologyTypeList.forEach(e => {
    e.colonialMorphologyTypeOptionDtos.forEach(op => {
      if (e.id === id && op.id === resultId && op.isSelected) {
        op.isSelected = true;
      } else if (e.id === id && op.id !== resultId) {
        op.isSelected = false;
      }
    });
  });
}
/**确定形态选择 */
function confirmClick() {
  proxy.$emit('obserConfirm', '特大、紫色、干燥');
  modalShow.value = false;
}
</script>
<style lang="scss" scoped>
:deep(.vxe-modal--content) {
  padding: 0.1em 1em;
}

:deep(.CMTypeBox) {
  margin-bottom: 5px;

  .el-col > div:last-child {
    text-align: center;

    .el-radio {
      margin-top: 4px;

      .el-radio__label {
        font-size: 12px;
      }
    }
  }
}
:deep(.CMTypeBox-title) {
  color: #333;
  font-size: 14px;
  width: 70px;
}
</style>